package com.dearxue.itest;

import com.dearxue.main.SourceSetsObject;
import com.google.common.collect.ImmutableList;
import org.junit.Test;

import java.util.List;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

public class SourceSetsItest {

  @Test
  public void givenImmutableList_whenRun_ThenSuccess() {

    SourceSetsObject underTest = new SourceSetsObject("lorem", "ipsum");
    List<String> someStrings = ImmutableList.of("deraxue", "is", "cool");

    assertThat(underTest.getUser(), is("lorem"));
    assertThat(underTest.getPassword(), is("ipsum"));
    assertThat(someStrings.size(), is(3));
  }
}
